Optimal. Leaf size=118 \[ -\frac{d^2 \left (a+b x^2\right )^{p+1} \, _2F_1\left (1,p+1;p+2;\frac{b x^2}{a}+1\right )}{2 a (p+1)}+2 d e x \left (a+b x^2\right )^p \left (\frac{b x^2}{a}+1\right )^{-p} \, _2F_1\left (\frac{1}{2},-p;\frac{3}{2};-\frac{b x^2}{a}\right )+\frac{e^2 \left (a+b x^2\right )^{p+1}}{2 b (p+1)} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.180749, antiderivative size = 118, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.35 \[ -\frac{d^2 \left (a+b x^2\right )^{p+1} \, _2F_1\left (1,p+1;p+2;\frac{b x^2}{a}+1\right )}{2 a (p+1)}+2 d e x \left (a+b x^2\right )^p \left (\frac{b x^2}{a}+1\right )^{-p} \, _2F_1\left (\frac{1}{2},-p;\frac{3}{2};-\frac{b x^2}{a}\right )+\frac{e^2 \left (a+b x^2\right )^{p+1}}{2 b (p+1)} \]
Antiderivative was successfully verified.
[In] Int[((d + e*x)^2*(a + b*x^2)^p)/x,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 19.9873, size = 94, normalized size = 0.8 \[ 2 d e x \left (1 + \frac{b x^{2}}{a}\right )^{- p} \left (a + b x^{2}\right )^{p}{{}_{2}F_{1}\left (\begin{matrix} - p, \frac{1}{2} \\ \frac{3}{2} \end{matrix}\middle |{- \frac{b x^{2}}{a}} \right )} + \frac{e^{2} \left (a + b x^{2}\right )^{p + 1}}{2 b \left (p + 1\right )} - \frac{d^{2} \left (a + b x^{2}\right )^{p + 1}{{}_{2}F_{1}\left (\begin{matrix} 1, p + 1 \\ p + 2 \end{matrix}\middle |{1 + \frac{b x^{2}}{a}} \right )}}{2 a \left (p + 1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((e*x+d)**2*(b*x**2+a)**p/x,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.563401, size = 130, normalized size = 1.1 \[ \frac{1}{2} \left (a+b x^2\right )^p \left (\frac{d^2 \left (\frac{a}{b x^2}+1\right )^{-p} \, _2F_1\left (-p,-p;1-p;-\frac{a}{b x^2}\right )}{p}+4 d e x \left (\frac{b x^2}{a}+1\right )^{-p} \, _2F_1\left (\frac{1}{2},-p;\frac{3}{2};-\frac{b x^2}{a}\right )+\frac{e^2 \left (-a \left (\frac{b x^2}{a}+1\right )^{-p}+a+b x^2\right )}{b (p+1)}\right ) \]
Antiderivative was successfully verified.
[In] Integrate[((d + e*x)^2*(a + b*x^2)^p)/x,x]
[Out]
_______________________________________________________________________________________
Maple [F] time = 0.059, size = 0, normalized size = 0. \[ \int{\frac{ \left ( ex+d \right ) ^{2} \left ( b{x}^{2}+a \right ) ^{p}}{x}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((e*x+d)^2*(b*x^2+a)^p/x,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (e x + d\right )}^{2}{\left (b x^{2} + a\right )}^{p}}{x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)^2*(b*x^2 + a)^p/x,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \[{\rm integral}\left (\frac{{\left (e^{2} x^{2} + 2 \, d e x + d^{2}\right )}{\left (b x^{2} + a\right )}^{p}}{x}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)^2*(b*x^2 + a)^p/x,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 37.7494, size = 109, normalized size = 0.92 \[ 2 a^{p} d e x{{}_{2}F_{1}\left (\begin{matrix} \frac{1}{2}, - p \\ \frac{3}{2} \end{matrix}\middle |{\frac{b x^{2} e^{i \pi }}{a}} \right )} - \frac{b^{p} d^{2} x^{2 p} \Gamma \left (- p\right ){{}_{2}F_{1}\left (\begin{matrix} - p, - p \\ - p + 1 \end{matrix}\middle |{\frac{a e^{i \pi }}{b x^{2}}} \right )}}{2 \Gamma \left (- p + 1\right )} + e^{2} \left (\begin{cases} \frac{a^{p} x^{2}}{2} & \text{for}\: b = 0 \\\frac{\begin{cases} \frac{\left (a + b x^{2}\right )^{p + 1}}{p + 1} & \text{for}\: p \neq -1 \\\log{\left (a + b x^{2} \right )} & \text{otherwise} \end{cases}}{2 b} & \text{otherwise} \end{cases}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x+d)**2*(b*x**2+a)**p/x,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (e x + d\right )}^{2}{\left (b x^{2} + a\right )}^{p}}{x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)^2*(b*x^2 + a)^p/x,x, algorithm="giac")
[Out]